package com.aaa.controller;

import com.aaa.entity.LayData;
import com.aaa.entity.MyPage;
import com.aaa.service.TRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * (TRole)表控制层
 *
 * @author makejava
 * @since 2022-10-21 16:24:14
 */
@RestController
@RequestMapping("tRole")
public class TRoleController {
    /**
     * 服务对象
     */
    @Autowired
    private TRoleService tRoleService;

    @GetMapping
    public LayData queryAll(MyPage myPage){
        return new LayData(tRoleService.findAll(myPage));
    }

}

